<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<base href="<%=basePath%>">

<script type="text/javascript">
	function submit1(){
		var form = document.forms[0];
		form.action = "<%=basePath%>login/login";
		form.method = "post";
		form.submit();
	}
</script>
<style>
html {
	width: 100%;
	height: 100%
}

body {
	width: 100%;
	height: 100%;
	 background: url(img/login/timg.jpg) no-repeat; 
	background-size: cover; /*这里设置了背景图片为覆盖，以填满整个容器*/
}
</style>

<title>首页</title>

</head>

<body >
	<div id="loginPanel" style="position:absolute; top:50%; left:50%; width:480px; height:240px; margin-left:-240px; margin-top:-120px;">
	<form action="" name="userForm">
		
		<table height="100px">
<tr></tr>
</table>
<table background="img/login/ta.jpg" width="65%" height="15%">
<tr>
<td rowspan="9" width="50%"></td>
<td></td>
</tr>
<tr>
<td></td>
</tr>

<tr>
<td></td>
</tr>


<tr>
<td></td>
</tr>


<tr>
<td></td>
</tr>
<tr>
<td>用户登录：<input
			type="text" name="userName" />  <!-- <a href="1.html">用户注册</a> --></td>
</tr>


<tr>
<td>密&nbsp;&nbsp;&nbsp;&nbsp;码：<input type="password" name="password" /><!-- <a href="1.html">找回密码</a> --></td>
</tr>


<tr>
<td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <input type="button" value="提交" onclick="submit1()" />&nbsp;&nbsp;&nbsp;&nbsp;<input type="reset" value="重写"/>
</td>
</tr>
</table>

				<!-- <tr>
<td></td>
</tr>

				 账号：<input
			type="text" name="userName" /> 密码：<input type="text"
			name="password" />
		&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
			 <input type="button" value="提交" onclick="submit1()" /> --></form>
	</div>
</body>
</html>
